package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class AdminChefExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public AdminChefExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value.getTime()), property);
        }

        protected void addCriterionForJDBCTime(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Time> timeList = new ArrayList<java.sql.Time>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                timeList.add(new java.sql.Time(iter.next().getTime()));
            }
            addCriterion(condition, timeList, property);
        }

        protected void addCriterionForJDBCTime(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Time(value1.getTime()), new java.sql.Time(value2.getTime()), property);
        }

        public Criteria andAcnoIsNull() {
            addCriterion("acno is null");
            return (Criteria) this;
        }

        public Criteria andAcnoIsNotNull() {
            addCriterion("acno is not null");
            return (Criteria) this;
        }

        public Criteria andAcnoEqualTo(String value) {
            addCriterion("acno =", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoNotEqualTo(String value) {
            addCriterion("acno <>", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoGreaterThan(String value) {
            addCriterion("acno >", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoGreaterThanOrEqualTo(String value) {
            addCriterion("acno >=", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoLessThan(String value) {
            addCriterion("acno <", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoLessThanOrEqualTo(String value) {
            addCriterion("acno <=", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoLike(String value) {
            addCriterion("acno like", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoNotLike(String value) {
            addCriterion("acno not like", value, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoIn(List<String> values) {
            addCriterion("acno in", values, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoNotIn(List<String> values) {
            addCriterion("acno not in", values, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoBetween(String value1, String value2) {
            addCriterion("acno between", value1, value2, "acno");
            return (Criteria) this;
        }

        public Criteria andAcnoNotBetween(String value1, String value2) {
            addCriterion("acno not between", value1, value2, "acno");
            return (Criteria) this;
        }

        public Criteria andCnoIsNull() {
            addCriterion("cno is null");
            return (Criteria) this;
        }

        public Criteria andCnoIsNotNull() {
            addCriterion("cno is not null");
            return (Criteria) this;
        }

        public Criteria andCnoEqualTo(String value) {
            addCriterion("cno =", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotEqualTo(String value) {
            addCriterion("cno <>", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThan(String value) {
            addCriterion("cno >", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoGreaterThanOrEqualTo(String value) {
            addCriterion("cno >=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThan(String value) {
            addCriterion("cno <", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLessThanOrEqualTo(String value) {
            addCriterion("cno <=", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoLike(String value) {
            addCriterion("cno like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotLike(String value) {
            addCriterion("cno not like", value, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoIn(List<String> values) {
            addCriterion("cno in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotIn(List<String> values) {
            addCriterion("cno not in", values, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoBetween(String value1, String value2) {
            addCriterion("cno between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andCnoNotBetween(String value1, String value2) {
            addCriterion("cno not between", value1, value2, "cno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andActimeIsNull() {
            addCriterion("acTime is null");
            return (Criteria) this;
        }

        public Criteria andActimeIsNotNull() {
            addCriterion("acTime is not null");
            return (Criteria) this;
        }

        public Criteria andActimeEqualTo(Date value) {
            addCriterionForJDBCTime("acTime =", value, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeNotEqualTo(Date value) {
            addCriterionForJDBCTime("acTime <>", value, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeGreaterThan(Date value) {
            addCriterionForJDBCTime("acTime >", value, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("acTime >=", value, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeLessThan(Date value) {
            addCriterionForJDBCTime("acTime <", value, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeLessThanOrEqualTo(Date value) {
            addCriterionForJDBCTime("acTime <=", value, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeIn(List<Date> values) {
            addCriterionForJDBCTime("acTime in", values, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeNotIn(List<Date> values) {
            addCriterionForJDBCTime("acTime not in", values, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("acTime between", value1, value2, "actime");
            return (Criteria) this;
        }

        public Criteria andActimeNotBetween(Date value1, Date value2) {
            addCriterionForJDBCTime("acTime not between", value1, value2, "actime");
            return (Criteria) this;
        }

        public Criteria andCstateIsNull() {
            addCriterion("cstate is null");
            return (Criteria) this;
        }

        public Criteria andCstateIsNotNull() {
            addCriterion("cstate is not null");
            return (Criteria) this;
        }

        public Criteria andCstateEqualTo(String value) {
            addCriterion("cstate =", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateNotEqualTo(String value) {
            addCriterion("cstate <>", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateGreaterThan(String value) {
            addCriterion("cstate >", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateGreaterThanOrEqualTo(String value) {
            addCriterion("cstate >=", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateLessThan(String value) {
            addCriterion("cstate <", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateLessThanOrEqualTo(String value) {
            addCriterion("cstate <=", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateLike(String value) {
            addCriterion("cstate like", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateNotLike(String value) {
            addCriterion("cstate not like", value, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateIn(List<String> values) {
            addCriterion("cstate in", values, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateNotIn(List<String> values) {
            addCriterion("cstate not in", values, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateBetween(String value1, String value2) {
            addCriterion("cstate between", value1, value2, "cstate");
            return (Criteria) this;
        }

        public Criteria andCstateNotBetween(String value1, String value2) {
            addCriterion("cstate not between", value1, value2, "cstate");
            return (Criteria) this;
        }

        public Criteria andAcdateIsNull() {
            addCriterion("acDate is null");
            return (Criteria) this;
        }

        public Criteria andAcdateIsNotNull() {
            addCriterion("acDate is not null");
            return (Criteria) this;
        }

        public Criteria andAcdateEqualTo(Date value) {
            addCriterionForJDBCDate("acDate =", value, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("acDate <>", value, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateGreaterThan(Date value) {
            addCriterionForJDBCDate("acDate >", value, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("acDate >=", value, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateLessThan(Date value) {
            addCriterionForJDBCDate("acDate <", value, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("acDate <=", value, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateIn(List<Date> values) {
            addCriterionForJDBCDate("acDate in", values, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("acDate not in", values, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("acDate between", value1, value2, "acdate");
            return (Criteria) this;
        }

        public Criteria andAcdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("acDate not between", value1, value2, "acdate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}